home *** CD-ROM | disk | FTP | other *** search
/ Click Press Kit / Click Press Kit.iso / pc / main.dxr / Internal_68_LogosStartFrame.ls < prev    next >
Encoding:
Text File  |  2006-05-31  |  3.0 KB  |  78 lines

  1. global gMaster, gSound, gTracker
  2.  
  3. on enterFrame me
  4.   sendAllSprites(#mSetUpGraphics)
  5. end
  6.  
  7. on exitFrame me
  8.   cursor(-1)
  9.   gSound.mResumeSound()
  10.   pSavedGraphic = member(gMaster.pLogoSettings.savedbutton, "assets")
  11.   pUnSavedGraphic = member(gMaster.pLogoSettings.savebutton, "assets")
  12.   gMaster.pmarker = the frameLabel
  13.   gTracker.mAddSection(gMaster.pmarker)
  14.   if gMaster.pLogoSettings.xyeffect = "TRUE" then
  15.     vSpriteCount = gMaster.pPhotoSpriteStartNum
  16.     repeat with x = 1 to gMaster.pLogoList.count
  17.       sprite(vSpriteCount).member = member(gMaster.pLogoList[x].pSmallName, "assets")
  18.       sprite(vSpriteCount).loc = gMaster.pLogoList[x].pXYlogo
  19.       vMemberWidth = member(gMaster.pLogoList[x].pSmallName, "assets").width
  20.       vMemberHeight = member(gMaster.pLogoList[x].pSmallName, "assets").height
  21.       vWidth = vMemberWidth * float("." & gMaster.pLogoSettings.percentage)
  22.       vHeight = vMemberHeight * float("." & gMaster.pLogoSettings.percentage)
  23.       if gMaster.pLogoSettings.percentage = 100 then
  24.         sprite(vSpriteCount).width = vMemberWidth
  25.         sprite(vSpriteCount).height = vMemberHeight
  26.       else
  27.         sprite(vSpriteCount).width = vWidth
  28.         sprite(vSpriteCount).height = vHeight
  29.       end if
  30.       vSpriteCount = vSpriteCount + 1
  31.     end repeat
  32.     updateStage()
  33.   end if
  34.   if gMaster.pLogoSettings.blendeffect = "TRUE" then
  35.     vSpriteCount = gMaster.pPhotoSpriteStartNum
  36.     repeat with x = 1 to gMaster.pLogoList.count
  37.       if gMaster.pLogoList[x].pSelected = "no" then
  38.         sprite(vSpriteCount).blend = 100
  39.       else
  40.         sprite(vSpriteCount).blend = gMaster.pLogoSettings.blendpercent
  41.       end if
  42.       vSpriteCount = vSpriteCount + 1
  43.     end repeat
  44.   end if
  45.   if gMaster.pLogoSettings.rectangles = "TRUE" then
  46.     vSpriteCount = gMaster.pPhotoSpriteStartNum
  47.     vSpriteCount2 = gMaster.pRectangleSpriteStartNum
  48.     repeat with x = 1 to gMaster.pLogoList.count
  49.       if gMaster.pLogoList[x].pSelected = "no" then
  50.         sprite(vSpriteCount2).rect = rect(-2000, -2000, -1999, 1999)
  51.       else
  52.         vLeft = sprite(vSpriteCount).left - 2
  53.         vTop = sprite(vSpriteCount).top - 2
  54.         vRight = sprite(vSpriteCount).right + 2
  55.         vBottom = sprite(vSpriteCount).bottom + 2
  56.         sprite(vSpriteCount2).rect = rect(vLeft, vTop, vRight, vBottom)
  57.       end if
  58.       vSpriteCount = vSpriteCount + 1
  59.       vSpriteCount2 = vSpriteCount2 + 1
  60.     end repeat
  61.   end if
  62.   if gMaster.pLogoSettings.pushpin = "TRUE" then
  63.     vSpriteCount = gMaster.pPhotoSpriteStartNum
  64.     vSpriteCount2 = gMaster.pPushPinSpriteStartNum
  65.     repeat with x = 1 to gMaster.pLogoList.count
  66.       if gMaster.pLogoList[x].pSelected = "no" then
  67.         sprite(vSpriteCount2).loc = point(-2000, -2000)
  68.       else
  69.         vLeft = sprite(vSpriteCount).left + gMaster.pLogoSettings.pinoffset[1]
  70.         vTop = sprite(vSpriteCount).top + gMaster.pLogoSettings.pinoffset[2]
  71.         sprite(vSpriteCount2).loc = point(vLeft, vTop)
  72.       end if
  73.       vSpriteCount = vSpriteCount + 1
  74.       vSpriteCount2 = vSpriteCount2 + 1
  75.     end repeat
  76.   end if
  77. end
  78.